home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / WINEXIT.ZIP / WINEXIT.H < prev    next >
Text File  |  1993-07-19  |  2KB  |  89 lines

  1. /*
  2.  * $Id: WINEXIT.H 1.0 1993/07/19 15:26:48 nino Exp $
  3.  *
  4.  * winexit.h file - define constants for winexit.c
  5.  */
  6.  
  7.  
  8. /* constants */
  9. #define DEBUG           1
  10. #define NODEBUG        0
  11. #define EW_QUICK     1
  12. #define EW_SLOW        2
  13.  
  14.  
  15. /* dialog, menu, accelerators */
  16. #define AboutDialog        1
  17. #define ExitDialog        2
  18. #define ExitWindowsMenu        3
  19. #define ExitAccelerators        4
  20.  
  21.  
  22. /* radio buttons and about button */
  23. #define IDD_ABOUT    10
  24. #define IDD_EXIT    11
  25. #define IDD_REST    12
  26. #define IDD_BOOT    13
  27. #define IDD_BMPEXIT    14
  28.  
  29. /* menus */
  30. /* system menu */
  31. #define IDM_ALWAYSONTOP 20
  32. #define IDM_QUICKEXIT   21
  33. #define IDM_ICONEXIT    22
  34.  
  35. /* application menu */
  36. #define IDM_EXIT        31
  37. #define IDM_REST        32
  38. #define IDM_BOOT        33
  39. #define IDM_ABOUT       34
  40.  
  41. /* about dlg bitmap (+1000) */
  42. #define IDB_ABOUT_EXIT                   IDD_BMPEXIT+1000     // About box
  43.  
  44. /* About button bitmaps */
  45. #define IDB_BUTT_UNPRESSED_UNFOCUSED     IDD_ABOUT + 1000     // About button
  46. #define IDB_BUTT_PRESSED_FOCUSED         IDD_ABOUT + 3000     // About button
  47. #define IDB_BUTT_UNPRESSED_FOCUSED       IDD_ABOUT + 5000     // About button
  48.  
  49. /*icons */
  50. #define IDI_EXIT1       30
  51. #define IDI_EXIT2       31
  52.  
  53. /* stringtable */
  54. #define IDS_BADVERSION          0
  55. #define IDS_BADOLDWINDOW    1
  56. #define IDS_BADOLDICON          2
  57. #define IDS_BADWINDOWTOP    3
  58. #define IDS_BADLOADLIBRARY    4
  59. #define IDS_EXITMESSAGE        16
  60. #define IDS_DEBUGMESSAGE    17
  61.  
  62.  
  63. /* private message for dialog initialisation */
  64. #define WM_INIWINEXIT        ( WM_USER + 1 )
  65.  
  66.  
  67. /* ini file setings */
  68. char        szIniFile[]      = "winexit.ini";
  69. char        szSection[]      = "Options";
  70. char            szQuickExit[]      = "QuickExit";
  71. char        szAlwaysOnTop[]      = "AlwaysOnTop";
  72. char        szIconExit[]      = "ExitMode";
  73.  
  74. /* globals */
  75. int         iQuickExitValue;
  76. int             iDebugValue      = NODEBUG;
  77. int             iBootAction       = IDD_EXIT;
  78. char        szAppName []      = "ExitWindows";
  79. char        szClassName[]     = "bordlgWindowsExit";
  80. HINSTANCE    hInst;
  81. HINSTANCE    hBWCCDLL;
  82. HWND        hExitWnd      = NULL;
  83. HACCEL        hAccel;
  84. LONG        lAction []      = { 0L, EW_RESTARTWINDOWS, EW_REBOOTSYSTEM };
  85.  
  86. // local proto.
  87. LRESULT FAR PASCAL _export ExitWndProc (HWND hDlg, UINT iMessage, UINT wParam, LONG lParam);
  88.  
  89.